package com.zx.onlineeducation.service.edu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 教学服务主启动类
 *
 * @author 郑雪
 * @since 2022-01-07
 */
// 开启服务注册发现功能，作为客户端访问Nacos注册中心
@EnableDiscoveryClient
// 启动 Feign 客户端功能，调用远程接口
@EnableFeignClients
@SpringBootApplication
@ComponentScan("com.zx.onlineeducation")
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class, args);
        System.out.println("\033[42m【服务消费者】教学服务，启动成功   ლ(´ڡ`ლ)ﾞ \033[0m\n");
    }
}
